package ikar.nrd.model;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public enum XsltNodeType {

	FOREACH("foreach"), IF_TEST_ROOT("if_exists_root_node"), IF_TEST_OPERAND("if_exists_test_node");

	private String name;

	private static Map<String, XsltNodeType> map = new HashMap<String, XsltNodeType>();
	static {
		for (XsltNodeType nodeType : XsltNodeType.values()) {
			map.put(nodeType.getName(), nodeType);
		}
	}

	private XsltNodeType(String name) {
		this.name = name;
	}

	public static List<Object> getValues() {
		return Arrays.asList(map.keySet().toArray());
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
